/**
 * Company : Thai Informatic System Co., Ltd.
 * Created By : Dr.Tree
 * Created On : Feb 14, 2012  3:43:54 PM 
 * e-Mail : chatree@tis.co.th
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : apps
 * File Name : sessionFactory.java
 * TODO
 */
package apps;

import javax.persistence.EntityManager;

/**
 * 
 * @author Chatree Siangklom of Administrator
 * Date =Nov 13, 2013 : 2:26:12 PM 
 * CreateBy=Chatree Siangklom
 * 
 * sessionFactory
 * TODO
 */
public class sessionFactory {
	
	/**
	 * 
	 * Date =Nov 13, 2013 : 2:26:16 PM 
	 * CreateBy=Chatree Siangklom
	 * EntityManager
	 * TODO
	 * @return
	 * @throws Exception
	 */
	public static final EntityManager CreateEmSynchro() throws Exception
	{
		EntityManager emSynchro = new jpa.service.common.SessionEntityManager().CreatedEntityManager();
		
		return emSynchro;
	}
	
	/**
	 * 
	 * Date =Nov 13, 2013 : 2:26:19 PM 
	 * CreateBy=Chatree Siangklom
	 * EntityManager
	 * TODO
	 * @return
	 * @throws Exception
	 */
	public static final EntityManager CreateEmPromis() throws Exception
	{
		EntityManager emPromis = new jpa.service.promis.common.SessionEntityManager().CreatedEntityManager();
		
		return emPromis;		
	}
}
